/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package user;

import commun.Message;
import java.util.ArrayList;

/**
 *
 * @author Qiao Bingzhi
 */
public interface _UserManager {

    public String newId();
    
    public String newUser(User user,String pwd);

    public User getUserById(String id);

    public User[] getAllUsers();
    
    public User[] getAllFriends(String id);

    public boolean checkLogin(Login login);
    
    public String getIdByUserName(String userName);
    
    public boolean addFriend(String id1,String id2);
    
    public boolean MessageSaver(Message message);
    
    public ArrayList MessageGetter(String id);
              

}
